package com.asman.vr.dto

import androidx.annotation.MainThread
import com.asman.vr.network.Api
import com.asman.vr.network.RequestBody
import com.asman.vr.network.liveData
import java.util.concurrent.Executor

class CommentRepository(private val api: Api, private val networkExecutor: Executor) {

    @MainThread
    fun addComment(addComment: RequestBody.AddComment) = liveData(api.addComment(addComment))

    @MainThread
    fun getAllCommentList(journalId: Long?, projectId: Long?) =
        liveData(api.getAllCommentList(journalId, projectId))

    @MainThread
    fun getCommentTags(level: Int?) = liveData(api.getCommentTags(0, level))

}